package cn.zt.mapper;


import cn.zt.domain.dao.Airline;
import cn.zt.domain.dao.Orders;
import cn.zt.domain.dto.FlightDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface SelectMapper extends BaseMapper<Airline> {

    List<Airline> selectFlightList(FlightDTO flightDTO);

    List<Orders> selectOrderByUserId(int id);

    int selectBookedCountByFlightId(Long flightId, int clazz);

    int selectCountByFlightId(String flightId);

    Date selectDateByFlightId(String flightId);

    List<Orders> selectWaitingOrderByFlightId(String flightId);

}
